function almostEqual(expected, actual, tolerance, message) {
  ok(Math.abs(actual - expected) <= tolerance, message);
}
